<?php
include("../utility/connection.php");
include("../model/mBarang.php");
session_start();

if($_SERVER["REQUEST_METHOD"] == "POST") {
    $rownum = trim(mysql_real_escape_string($_POST["hidRownum"]));
    $result = fnBrgByRownum($rownum);
    $count = mysql_num_rows($result);
    $InfoBrgByRownum = mysql_fetch_array($result);
    
    if ($count == 1) {
        $_SESSION['InfoBrgByRownum']=$InfoBrgByRownum;
        header("location: ../detilBarang.php");
    }
}
?>
